package com.tanhua.dubbo.api;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tanhua.model.domain.BlackList;

/**
 * @author Xiao
 * @date 2021/10/23
 */
public interface BlackListApi {
    /**
     * 分页查询黑名单
     * @param userId
     * @param page
     * @param pagesize
     * @return
     */
    IPage<BlackList> page(Long userId, Integer page, Integer pagesize);

    /**
     * 移除黑名单
     * @param userId
     * @param blackUserId
     */
    void removeByUid(Long userId, Long blackUserId);
}
